<?php
/**
 * Created by PhpStorm.
 * User: jacob
 * Date: 18-7-27
 * Time: 下午2:35
 */
namespace Tiny;

class Response{
  public $data;
  public $httpStatus;
  public $httpStatusMsg;
  public $httpHeaders = [];

  public function __construct() {
    $this->httpStatus = HttpStatus::SUC;
    //服务器返回带有Access-Control-Allow-Origin标识的response header,解决跨域问题
    $this->httpHeaders["Access-Control-Allow-Origin"] = "*";
  }
}
